<table id="" class="tablesorter"> 
    <thead> 
        <tr> 
            <th>#</th>
            <th><?php echo $lang['ctext_name'] ?></th> 
            <th><?php echo $lang['ctext_iso_code_2'] ?></th> 
            <th><?php echo $lang['ctext_iso_code_3'] ?></th> 
            <th><?php echo $lang['ctext_address_format'] ?></th> 
            <th><?php echo $lang['ctext_postcode_required'] ?></th> 
            <th><?php echo $lang['ctext_status'] ?></th> 
            <th><?php echo $lang['ctext_action'] ?></th> 
        </tr> 
    </thead> 

    <tbody> 

        <?php foreach ($countries as $country) { ?>
            <tr id="country_<?php echo $country->country_id ?>"> 
                <td><?php echo $country->country_id ?></td> 
                <td><?php echo $country->name ?></td> 
                <td><?php echo $country->iso_code_2 ?></td> 
                <td><?php echo $country->iso_code_3 ?></td> 
                <td><?php echo $country->address_format ?></td> 
                <td><?php echo $country->postcode_required ?></td> 
                <td id="stt<?php echo $country->country_id ?>"><?php echo ($country->status == 1) ? $lang['text_active'] : $lang['text_deactive'] ?></td> 
                <td>
                    <a href="<?php echo admin_url('location/country_form/' . $country->country_id) ?>" title="<?php echo $lang['text_edit'] ?>"><img src="<?php echo base_url() ?>/admin_public/img/Pencil-icon.png"/></a>
                    <a href="javascript:delete_country(<?php echo $country->country_id ?>)" title="<?php echo $lang['text_delete'] ?>"><img src="<?php echo base_url() ?>/admin_public/img/Button-Close-icon.png"/></a>

                </td> 
            </tr> 
        <?php } ?>
    </tbody> 
</table>